//
//  AppDelegate+DNJpush.h
//  DNCodeConfuseDemo
//
//  Created by hushuaike on 17/8/22.
//  Copyright © 2017年 hushuaike. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate (DNJpush)

/** 极光推送中的详细信息 */
@property (strong, nonatomic, readonly) NSDictionary *UCSJPushNotiInfo;

/**
 即将弹出消息时
 */
@property (copy, nonatomic) NSInteger(^UCSWillPresentNotification)(NSDictionary *notityInfo);

/**
 接收到远程消息时
 */
@property (copy, nonatomic) void(^UCSDidReceiveNotificationResponse)(NSDictionary *notityInfo);

/**
 已启动程序,点击消息进入前台
 */
@property (copy, nonatomic) void(^UCSDidReceiveRemoteNotification)(NSDictionary *notityInfo);

/**
 进入后台
 */
@property (copy, nonatomic) void(^UCSAppDidEnterBackground)();

/**
 进入前台
 */
@property (copy, nonatomic) void(^UCSAppWillEnterForeground)();

/**
 初始化极光推送
 
 @param application 当前程序
 @param launchOptions 启动参数
 @param jPushKey 极光推送key
 @param jPushUUID 不同状态下,请设置不同值 例如:登录状态设置固定值,退出登录请设置随机值;
 */
- (void)jPushConfigApplication:(UIApplication *)application
 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions withJPushkey:(NSString *)jPushKey jPushUUID:(NSString *(^)())jPushUUID;

- (void)updateAPServiceAlisa;

- (void)setOpenUCSJPushLog:(BOOL)openUCSJPushLog;

@end
